package c.a.a.d0;

import android.graphics.PointF;
import c.a.a.d0.h0.c;
import c.a.a.d0.h0.c.b;
import java.io.IOException;

/* compiled from: PointFParser */
public class v implements g0<PointF> {
    public static final v a = new v();

    public Object a(c cVar, float f) throws IOException {
        b u0 = cVar.u0();
        if (u0 == b.BEGIN_ARRAY) {
            return o.b(cVar, f);
        }
        if (u0 == b.BEGIN_OBJECT) {
            return o.b(cVar, f);
        }
        if (u0 == b.NUMBER) {
            PointF pointF = new PointF(((float) cVar.w()) * f, ((float) cVar.w()) * f);
            while (cVar.t()) {
                cVar.y0();
            }
            return pointF;
        }
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("Cannot convert json to point. Next token is ");
        stringBuilder.append(u0);
        throw new IllegalArgumentException(stringBuilder.toString());
    }
}
